//package com.laoguo.Controller;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.MessageSource;
//import org.springframework.context.i18n.LocaleContextHolder;
//import org.springframework.stereotype.Controller;
//import org.springframework.ui.ModelMap;
//
//import java.util.Locale;
//
//@Controller
//public class ThymeleafController {
//    @Autowired
//    private MessageSource messageSource;
//
//    @RequestMapping("/Thymeleaf")
//    public String Thymeleaf(ModelMap modelMap){
//        Locale locale = LocaleContextHolder.getLocale();
//
//        modelMap.addAttribute("message", messageSource.getMessage("message",null,locale));
//
//        return "thymeleaf";
//    }
//}
